package com.xw.p01_strategy;

/**
 * @author XW
 * @data 2023/12/4 14:14
 * @description 计谋有了，那还要有锦囊
 */
public class Context {

    private IStrategy iStrategy;

    public Context(IStrategy iStrategy) {
        this.iStrategy = iStrategy;
    }

    public void operate(){
        this.iStrategy.operate();
    }
}
